package com.weng.cloud.service8881.config;

import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: weng
 * @Date: 2022/3/11
 * @Description: com.weng.cloud.service8881.config
 */
@RestController
@RefreshScope
public class ConfigController {

/*    @Value("${weng.player.number}")
    private Integer no;

    @Value("${weng.player.name}")
    private String name;

    @Value("${weng.player.arg}")
    private String arg;

    @GetMapping("/testConfig")
    public String testConfig(){
        NbaPlayer player = new NbaPlayer();
        player.setNo(no);
        player.setName(name);
        player.setArg(arg);
        return JsonUtil.toText(player);
    }*/
}
